package com.example.test2;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.animation.Interpolator;
import android.widget.Button;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;
import androidx.core.animation.LinearInterpolator;

public class IyricActivity extends AppCompatActivity {

    private Button button4;
    private ImageView imageView5;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_iyric);
        initView();

        //歌词Activity返回
        button4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(IyricActivity.this, MainActivity.class);
                startActivity(intent);

            }
        });

        //歌词封面旋转（未实现）
//        Animation operatingAnim = AnimationUtils.loadAnimation(IyricActivity.this, R.anim.tip);
//        LinearInterpolator lin = new LinearInterpolator();
//        operatingAnim.setInterpolator((Interpolator) lin);
//        if (operatingAnim !=null){
//            imageView5.startAnimation(operatingAnim);
//        }
    }

    private void initView() {
        button4 = (Button) findViewById(R.id.button4);
        imageView5 = (ImageView) findViewById(R.id.imageView5);
    }
}